
<!--
/**************************************************
* @ manufacturedetail.jsp
*
* Copyright   2005 Hitrust Technology Inc.
* Developed by SDC, Hitrust.
* All Rights Reserved.
*
* Modify History:
*  v1.00, 2006/02/14, Jenny Li
*  1) first release
/**************************************************
-->
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="../common.jsp" %>

<html>
<head>
<title>产品明细</title>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="<%=root%>/css/caigouxitong.css" type=text/css rel=stylesheet>
<SCRIPT language="JavaScript" src="<%=root%>/js/common.js"></SCRIPT>
<%
	GSManufactureBean tGSManufactureBean = (GSManufactureBean)request.getAttribute("manufacturedetail");
	String code=GSBaseManager.getFirstPictureHtmlCode(tGSManufactureBean.getGs_concentricity());
	String codeAll=GSBaseManager.getPictureHtmlCode(tGSManufactureBean.getGs_concentricity());
%>
<script src="<%=root%>/js/pic/jquery.js" type="text/javascript"></script>
<script src="<%=root%>/js/pic/jqzoom.pack.1.0.1.js" type="text/javascript"></script>
<script src="<%=root%>/js/pic/jquery.jcarousel.pack.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="<%=root%>/js/pic/jquery.jcarousel.css" />
<link rel="stylesheet" type="text/css" href="<%=root%>/css/skins/tango/skin.css" />
<link rel="stylesheet" type="text/css" href="<%=root%>/css/jqzoom.css" />

<style type = "text/css">
* {margin:0; padding:0;}
body {font-size:12px;}
ul {list-style:none;}
#pro_view {margin:12px;width:780px;}
#pro_infor {height:260px;}
#image_box {float:left;width:350px;height:251px;}
#image_box img {border:1px solid #ccc;width:335px;height:251px;}
#pro_baseinfo {float:left; width:400px;height:251px;}
#image_list {clear:both;height:50px;}
#image_list img {width:50px;height:38px; border:1px solid #ccc; padding:2px;cursor:pointer;}
</style>
<script language="JavaScript">
	var counter;
	function process(option){
		if(option == 'P'){
			manufacturedetailform.action = "<%= response.encodeURL(request.getContextPath() + "/A200105.do") %>";
		
		}else if(option == 'F'){
			manufacturedetailform.action = "<%= response.encodeURL(request.getContextPath() + "/A200102.do") %>";
		}
		manufacturedetailform.submit();
	}
	function openwin(value){
		showModalDialog("<%=root%>/jsp/showimage.jsp?path="+value,window,"status:no;unadorned:yes;dialogWidth:375px;dialogHeight:400px;help:no;");
	}

	$(function() {

	    // 放大镜
	    var options =
	    {
	        zoomWidth: 350,
	        zoomHeight: 250,
	        showEffect:'show',
	        hideEffect:'fadeout',
	        fadeoutSpeed: 'slow',
	        title :false
	    }
	    $(".jqzoom").jqzoom(options);

	    // 图片左右滚动
	    $('#image_list').jcarousel();

	    // 点击小图更换大图
	    $('#image_list img:only-child').click(function(){
	        $('#current_img').attr('src', this.src);
	        // 大图的命名方式为 小图 + 下划线
	        $('#current_img').parent().attr('href', this.alt);
	    });
	});
</script>
<script language="javascript">
function afterload()
{
  fileopen("ManufactureDetail.vts");
 
  //填入内容

  F1Book1.EntryRC ( 1, 2) = "<%=tGSManufactureBean.getGs_concentricity()%>";
  F1Book1.EntryRC ( 2, 2) = "<%=GSBaseManager.getManufactureCategoryName(tGSManufactureBean.getGs_manufacture_category_id())%>";
  F1Book1.EntryRC ( 3, 2) = "<%=tGSManufactureBean.getGs_manufacture_type()%>";
  F1Book1.EntryRC ( 4, 2) = "<%=tGSManufactureBean.getGs_make_area()%>";	
  F1Book1.EntryRC ( 5, 2) = "<%=tGSManufactureBean.getGs_quality_assure_period()%>";
  F1Book1.EntryRC ( 6, 2) = "<%=tGSManufactureBean.getGs_adapt_machine_type()%>";
  F1Book1.EntryRC ( 1, 5) = "<%=tGSManufactureBean.getGs_manufacture_name()%>";
  F1Book1.EntryRC ( 2, 5) = "<%=tGSManufactureBean.getGs_manufacture_brand()%>";
  F1Book1.EntryRC ( 3, 5) = "<%=tGSManufactureBean.getGs_manufacture_spec()%>";
  F1Book1.EntryRC ( 4, 5) = "<%=tGSManufactureBean.getGs_quant_unit()%>";	
  F1Book1.EntryRC ( 5, 5) = "<%=tGSManufactureBean.getGs_manufacturer_name()%>";
	     
}

function fileopen(vts)
{
        var mylink=location.href;
        var i=mylink.length;
        while (mylink.substring(i-1,i)!= "/")
        {i--;}
        mylink=mylink.substring(0,i);
        F1Book1.URL = mylink+"jsp/"+vts;
        F1Book1.ShowRowHeading  = false;
        F1Book1.ShowcolHeading  = false;
        F1Book1.Showtabs  = 0;
        F1Book1.ShowEditBar=false;
        F1Book1.EnableProtection=false;
        F1Book1.SetProtection(true,true);
}

function print_bill(){
    F1Book1.FilePrint(true);
}
</script>
</head>
<body BGCOLOR="#f2f2f2"	text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="manufacturedetailform" method="post" >
<p><br></p>
<br>
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr> 
		<td> 
			<table class=bg_table id=tableId	cellspacing=1 cellpadding=0 style="padding-left:5;padding-right:5" width=100% align=center border=0>
				<TR height=20>
					<%
						//GSOperatorBean bean = (GSOperatorBean) session.getAttribute(GSBaseConstants.LOGIN);
						//if("00".equals(bean.getGs_oper_org_id().substring(0,2))){
						    if(true){
					%>
					<TD class="bg_column" align=center width="20%">集中编码</TD>
					<TD align=left class="bg_row_odd" width="30%"><%=tGSManufactureBean.getGs_concentricity()%></TD>
					<TD class="bg_column" align=center width="20%">产品编号</TD>
					<TD align=left class="bg_row_odd" width="30%"><%=tGSManufactureBean.getGs_manufacture_id()%></TD>					
					<%
						}else{
					%>
					<TD class="bg_column" align=center width="20%">集中编码</TD>
					<TD align=left class="bg_row_odd" width="30%" colspan=3><%=tGSManufactureBean.getGs_concentricity()%></TD>
					<%
						}
					%>
					
				</TR>
				<TR height=20>
					<TD class="bg_column" align=center width="20%">产品名称</TD>
					<TD align=left class="bg_row_odd" width="30%"><%=tGSManufactureBean.getGs_manufacture_name()%></TD>					
					<TD class="bg_column" align=center width="20%">供应商</TD>
					<TD align=left class="bg_row_odd" width="30%"><%=GSBaseManager.getProviderName(tGSManufactureBean.getGs_provider_id())%></TD>					
				</TR>
				<tr>
					<TD class="bg_column" align=center>产品分类</TD>
					<TD align=left class="bg_row_odd" >
						<%=GSBaseManager.getManufactureCategoryName(tGSManufactureBean.getGs_manufacture_category_id())%>
					</TD>					
					<TD class="bg_column" align=center>品牌</TD>
					<TD align=left class="bg_row_odd">
						<%=tGSManufactureBean.getGs_manufacture_brand()%>					
					</TD>					
				</TR>
				<tr>
					<TD class="bg_column" align=center>型号</TD>
					<TD align=left class="bg_row_odd" >
						<%=tGSManufactureBean.getGs_manufacture_type()%>
					</TD>					
					<TD class="bg_column" align=center>规格</TD>
					<TD align=left class="bg_row_odd">
						<%=tGSManufactureBean.getGs_manufacture_spec()%>					
					</TD>					
				</TR>
								
				<TR height=20>
					<TD class="bg_column" align=center>单价</TD>
					<TD align=left class="bg_row_odd">
					<%=tGSManufactureBean.getGs_manufacture_unitprice()%>元
					</TD>					
					<TD class="bg_column" align=center>数量单位</TD>
					<TD align=left class="bg_row_odd">
					<%=tGSManufactureBean.getGs_quant_unit() %>
					</TD>	
				</TR>		
				<TR height=20>
					<TD class="bg_column" align=center>质保期</TD>
					<TD align=left class="bg_row_odd">
						<%=tGSManufactureBean.getGs_quality_assure_period() %>
					</TD>
					<TD class="bg_column" align=center>公里质保期</TD>
					<TD align=left class="bg_row_odd">
						<%=tGSManufactureBean.getKm_quality_assure_period()%>					
					</TD>						
					
				</TR>		
				<TR height=20>
					<TD class="bg_column" align=center>产地</TD>
					<TD align=left class="bg_row_odd">
					<%=tGSManufactureBean.getGs_make_area()%>
					</TD>					
					<TD class="bg_column" align=center>图件号</TD>
					<TD align=left class="bg_row_odd">
					<%=tGSManufactureBean.getGs_drawing_peice_code() %>				
					</TD>					
				</TR>				
				<TR height=20>
					<TD class="bg_column" align=center>附加属性</TD>
					<TD align=left class="bg_row_odd" colspan="3">
						<%=tGSManufactureBean.getGs_appender_property()%>
					</TD>					
				</TR>				
				<TR height=20>	
					<TD class="bg_column" align=center>备注</TD>
					<TD align=left class="bg_row_odd" >
						<%=tGSManufactureBean.getGs_remark()%>					
					</TD>	
					<TD class="bg_column" align=center>生产厂商</TD>
					<TD align=left class="bg_row_odd">
					<%=tGSManufactureBean.getGs_manufacturer_name() %>	
					</TD>						
				</TR>	
				<TR height=30>
					<TD class="bg_column" align=center>产品创建人员</TD>
					<TD align=left class="bg_row_odd">
					  <%=tGSManufactureBean.getCreate_user()%>
					</TD>					
					<TD class="bg_column" align=center>产品创建时间</TD>
					<TD align=left class="bg_row_odd">
				       <%=tGSManufactureBean.getCreate_time()%>				
					</TD>					
				</TR>				
				<TR height=20>	
					<TD class="bg_column" align=center>有效性</TD>
					<TD align=left class="bg_row_odd" >
						<%=GSBaseManager.getValidityName2(tGSManufactureBean.getGs_validity())%>
					</TD>
                    <TD class="bg_column" align=center>结算模式</TD>
                    <TD align=left class="bg_row_odd" >
                        <%=DefineDic.getBalanceMode(tGSManufactureBean.getGs_balance_mode())%>
                    </TD>   				
				</TR>	              
                <TR height=20>  
                    <TD class="bg_column" align=center>最后修改人</TD>
                    <TD align=left class="bg_row_odd" >
                        <%=tGSManufactureBean.getLast_update_user()%>
                    </TD>
                    <TD class="bg_column" align=center>最后修改时间</TD>
                    <TD align=left class="bg_row_odd" >
                        <%=tGSManufactureBean.getLast_update_time().substring(0,19)%>
                    </TD>                   
                </TR>    
                
                 <TR height=20>  
                    <TD class="bg_column" align=center>产品图片</TD>
                    <TD class="bg_row_odd" colspan="3">
                    <div id="pro_view">
        <div id="pro_infor">
            <div id="image_box">
               <%=code%>
            </div>
    
        </div>
			      <%if(!"".equals(codeAll)){ %>
        <ul id="image_list" class="jcarousel-skin-tango">
        	<%=codeAll%>
        </ul>
                 <%} %>
    </div>
                    </TD>
                         
                </TR>    

			</table>

		</td>
	</tr>
	
           
</table>
</form>
    <p align="center">  
		<input type="button" class="kuang" value='关闭' onclick="window.close();">			
    </p>
</body>
</html>